﻿<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>javascript事件循环</title>
</head>
<body>
    <script type="text/javascript">
        let name = 'hp'
        setTimeout(() => {
            name = 'hp1'
        })
        setTimeout(() => {
            name = 'hp2'
        })
        name = 'hp3'
        document.write(name)
        // setTimeout(() => {
        //   document.write(name)
        // })
    </script>
</body>
</html>
